﻿using Pescar2013ShopYourAppliances.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Pescar2013ShopYourAppliances.Controllers
{
    public class HomeController : Controller
    {
        private ContexDatos db = new ContexDatos();

        //
        // GET: /Home/

        public ActionResult Index()
        {
            var lista = db.productos.ToList();
            return View(model: lista);
        }
        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
